<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<!DOCTYPE html><html>
   <head>
      <title>Aprobaci&oacute;n de &Oacute;rdenes de Trabajo</title>
      <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="author" content="Moises Canche Tzab - Sybil Integraciones TI">
      <link rel="shortcut icon" type="image/x-icon" href="${pageContext.request.contextPath}/recursos/images/favicon.ico">
      <link rel="stylesheet" href="${pageContext.request.contextPath}/recursos/css/stylemoctezuma.css">
      <link rel="stylesheet" href="${pageContext.request.contextPath}/recursos/css/theme-concretos.css">
      <link rel="stylesheet" href="${pageContext.request.contextPath}/recursos/css/overcast/jquery-ui-1.10.3.custom.css">
      <script type="text/javascript" src="${pageContext.request.contextPath}/recursos/js/jquery-1.9.1.js"></script>
      <script type="text/javascript" src="${pageContext.request.contextPath}/recursos/js/jquery-ui-1.10.3.custom.js"></script>
      <script type='text/javascript'>
         $(document).ready(function() {
            $(".btn_salir").button({icons: {primary: "ui-icon-power"}});
            $(".btn_salir").click(function() {
               window.location.replace("${pageContext.request.contextPath}/j_spring_security_logout");
            });
            $(".btn_regresar").button({icons: {primary: "ui-icon-arrowreturnthick-1-w"}});
            $(".btn_guardar").button({icons: {primary: "ui-icon-disk"}});
            $(".btn_agregar").button({icons: {primary: "ui-icon-plusthick"}});
            $(".btn_editar").button({icons: {primary: "ui-icon-pencil"}, text: false});
            $(".btn_inactivar").button({icons: {primary: "ui-icon-cancel"}, text: false});
            $(".btn_copiar").button({icons: {primary: "ui-icon-copy"}, text: false});
            $(".btn_eliminar").button({icons: {primary: "ui-icon-circle-minus"}, text: false});
            $(".btn_complementar").button({icons: {primary: "ui-icon-play"}, text: false});
            $(".btn_pdf").button({icons: {primary: "ui-icon-document"}, text: false});
            $("input[type=text]").focus(function() {
               //$(this).select();
            }).keyup(function() {
               $(this).val($(this).val().toUpperCase());
            }).blur(function() {
               $(this).val($(this).val().toUpperCase());
            });
            $("textarea").keyup(function() {
               $(this).val($(this).val().toUpperCase());
            }).blur(function() {
               $(this).val($(this).val().toUpperCase());
            });
            $(".txt_digito").keyup(function() {
               $(this).val(formatoDigito($(this).val()));
            }).blur(function(){
               $(this).val(formatoDigito($(this).val()));
            });
            $(".txt_decimal").keyup(function() {
               $(this).val(formatoFloat( $(this).val() )  );
            }).blur(function() {
               $(this).val(formatoFloat( $(this).val() )  );
            });
         });
         function formatoFloat(valor) {
            valor = valor.replace(/[^\d.-]/g, '');
            if (valor.length <= 0) {
               valor = 0;
            } else {
               //valor = Math.round(valor * 100) / 100;
            }
            return valor;
         }
         function formatoDigito(valor) {
            valor = valor.replace(/\D/g, "");
            if (valor.length <= 0) {
               valor = 0;
            }
            return valor;
         }
      </script>
   </head><body>
      <!--[if lt IE 7]><p class="chromeframe">Esta utilizando un explorador obsoleto. <a href="http://browsehappy.com/">
        Upgrade your browser today</a> or <a href="http://www.google.com/chromeframe/?redirect=true">
        install Google Chrome Frame</a> to better experience this site.</p><![endif]-->
      <!-- Empieza el layout principal -->
      <div id="pnl_layout">
         <div class="header"><div class="logo fleft"></div><div class="slogan fleft"></div>
            <div class="tools-header fright"><sec:authentication property="principal.username" />
               <button type="button" class="btn_salir" title="Cerrar Sesi&oacute;n">Salir</button>
            </div></div>
         <div class="menu"><ul id="topnav">
               <li><a href="${pageContext.request.contextPath}/catalogos">CAT&Aacute;LOGOS</a>
                  <span>
                     <a href="${pageContext.request.contextPath}/catalogos/clases">Clases OT</a><strong>|</strong>
                     <a href="${pageContext.request.contextPath}/catalogos/tipostrabajo">Tipos Trabajo OT</a><strong>|</strong>
                     <a href="${pageContext.request.contextPath}/catalogos/tareas">Checklist</a><strong>|</strong>
                     <a href="${pageContext.request.contextPath}/catalogos/defectos">Defectos</a><strong>|</strong>
                     <a href="${pageContext.request.contextPath}/catalogos/causas">Causas</a><strong>|</strong>
                     <a href="${pageContext.request.contextPath}/catalogos/acciones">Acciones</a><strong>|</strong>
                     <a href="${pageContext.request.contextPath}/catalogos/responsablesz">Responsables Zona</a><strong>|</strong>
                  </span>
               </li>
               <li><a href="${pageContext.request.contextPath}/flujos">FLUJOS</a></li>
               <li><a href="${pageContext.request.contextPath}/solicitudes/historicos">HIST&Oacute;RICO</a></li>
               <li><a href="${pageContext.request.contextPath}/pedidos">PEDIDOS</a></li>
               <li><a href="${pageContext.request.contextPath}/ordenes">ORDENES TRABAJO</a></li>
               <li><a href="${pageContext.request.contextPath}/index">BANDEJA DE ENTRADA</a></li>
            </ul></div>